import './assets/main.css'

import {createApp} from 'vue'
import {createPinia} from 'pinia'

import App from './App.vue'
import router from './router'

window.isLogin = false
window.loginData = null

tools.ipcInvoke('existsSync', './../../loginData.json').then(res => {
    if (res) {
        window.isLogin = true
    }

    const app = createApp(App)

    app.use(createPinia())
    app.use(router)

    app.mount('#app')
})


